<?php if($session->check('Auth.User.id') && $this->Session->read('Auth.User.group') == 'admin' || $session->check('Auth.User.id') && $this->Session->read('Auth.User.group') == 'manag'){?>
	
	<li><?php echo $this->Html->link(__('New Post', true).'<small>'.__('New Post', true).'</small>', 
		array('plugin'=>'blog','controller'=>'posts','action'=>'add'),
		array('escape'=>false,'style'=>'background-image: url(/img/firma/actions_16_add.png)')); ?></li>
	
	<?php if(isset($post['Post']['id'])){?>
	<li><?php echo $this->Html->link(__('Edit Post', true).'<small>'.__('Edit Post', true).'</small>', 
		array('plugin'=>'blog','controller'=>'posts','action'=>'edit',$post['Post']['id']),
		array('escape'=>false,'style'=>'background-image: url(/img/firma/actions_16_edit.png)')); ?></li>
	
	<li><?php echo $this->Html->link(__('Delete Post', true).'<small>'.__('Delete Post', true).'</small>', 
		array('plugin'=>'blog','controller'=>'posts','action'=>'delete',$post['Post']['id']),
		array('escape'=>false,'style'=>'background-image: url(/img/firma/actions_16_delete.png)'), sprintf(__d('store','Are you sure you want to delete # %s?', true), $post['Post']['id'])); ?></li>

	<li><?php echo $this->Html->link(__('Comments', true).'<small>'.__('Comments', true).'</small>', 
		array('plugin'=>'blog','controller'=>'comments','action'=>'index',$post['Post']['id']),
		array('escape'=>false,'style'=>'background-image: url(/img/firma/actions_16_gallery.png)')); ?></li>
				
	<?php }?>
	<?php if(isset($this->data['Post']['id']) && is_numeric($this->data['Post']['id'])){?>

	<li><?php echo $this->Html->link(__('View Post', true).'<small>'.__('View Post', true).'</small>', 
		array('plugin'=>'blog','controller'=>'posts','action'=>'view',$this->data['Post']['id']),
		array('escape'=>false,'style'=>'background-image: url(/img/firma/actions_16_view.png)')); ?></li>
	
	<li><?php echo $this->Html->link(__('Delete Post', true).'<small>'.__('Delete Post', true).'</small>', 
		array('plugin'=>'blog','controller'=>'posts','action'=>'delete',$this->data['Post']['id']),
		array('escape'=>false,'style'=>'background-image: url(/img/firma/actions_16_delete.png)'), sprintf(__d('store','Are you sure you want to delete # %s?', true), $this->data['Post']['id'])); ?></li>

	<li><?php echo $this->Html->link(__('Comments', true).'<small>'.__('Comments', true).'</small>', 
		array('plugin'=>'blog','controller'=>'comments','action'=>'index',$this->data['Post']['id']),
		array('escape'=>false,'style'=>'background-image: url(/img/firma/actions_16_gallery.png)')); ?></li>

	<?php }?>
<?php }?>
